package componentes;

import javax.swing.JPanel;
import javax.swing.SwingConstants;
import net.miginfocom.swing.MigLayout;
/**
 * @author Reynald0
 */
public class CompCalculadora extends JPanel
{
   private CompRadioBoton bRadio;
   private CompRadioBoton bRadio2;
   protected CompRadioBoton bRadio3;
   protected CompBoton2      bBoton;
   protected CompBoton2      bBoton2;
   protected CompBoton2      bBoton3;
   protected CompBoton2      bBoton4;
   protected CompBoton2      bBoton5;
   
   public CompCalculadora(JPanel pPanel)
   {
      setLayout(new MigLayout("", "[grow][grow][grow][grow][grow][grow][grow][grow][grow][grow]", "[grow]"));
      bRadio = new CompRadioBoton(this,"Sexsages");
      bRadio.setHorizontalAlignment(SwingConstants.CENTER);
      this.add(bRadio, "cell 0 0 2 1,grow");
      bRadio2 = new CompRadioBoton(this,"Radianes");
      bRadio2.setHorizontalAlignment(SwingConstants.CENTER);
      this.add(bRadio2, "cell 2 0 2 1,grow");
      bRadio2 = new CompRadioBoton(this,"Radianes");
      bRadio2.setHorizontalAlignment(SwingConstants.CENTER);
      this.add(bRadio2, "cell 4 0,grow");
      bBoton = new CompBoton2(this,"MC",null, "cell 5 0,grow");
      bBoton2 = new CompBoton2(this,"MR",null, "cell 6 0,grow");
      bBoton3 = new CompBoton2(this,"MS",null, "cell 7 0,grow");
      bBoton4 = new CompBoton2(this,"M+",null, "cell 8 0,grow");
      bBoton5 = new CompBoton2(this,"M-",null, "cell 9 0,grow");
      if(pPanel != null) pPanel.add(this);
   }
}
